package com.example.demo4.sentinel.ctrl;

import com.example.demo4.sentinel.feign.ProviderFeignClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@RequestMapping("/customer")
@RestController
public class CustomerController {

    @Autowired
    private ProviderFeignClient feignClient;

    @GetMapping("/info")
    public String info() {
        return feignClient.provider();
    }
}
